
<!DOCTYPE HTML>
<html>
  <head>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <title>
      账户充值 - 支付宝 - 网上支付 安全快速！
    </title>
 <script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="js/qrcode.js"></script>
    <link charset="utf-8" rel="stylesheet" href="images/front-old.css" media="all"/>
<style>
.switch-tip-icon-img {
    position: absolute;
    left: 70px;
    top: 70px;
    z-index: 11;

}
 #codeico{
   position:fixed;
  
   z-index:9999999;
   width:43px; 
   height:43px;
   background:url('images/T1Z5XfXdxmXXXXXXXX.png') no-repeat;
}
    </style>



  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
  
  <body>
    <div class="topbar">
      <div class="topbar-wrap fn-clear">
        <a href="https://help.alipay.com/lab/help_detail.htm?help_id=258086" class="topbar-link-last" target="_blank" seed="goToHelp">常见问题</a>
        		<span class="topbar-link-first">你好，欢迎使用支付宝付款！</span>

      </div>
    </div>
    <div id="header">
      <div class="header-container fn-clear">
        <div class="header-title">
          <div class="alipay-logo">
          </div>
          <span class="logo-title">
            我的收银台
          </span>
        </div>
      </div>
    </div>
  
     
<div id="container">
      <div id="content" class="fn-clear">
        <div id="J_order" class="order-area" >
          <div id="order" class="order order-bow">
            <div class="orderDetail-base" >
              <div class="commodity-message-row">
                <span class="first long-content">
                  收款方：开彩网 
                </span> 交易单号：u19658od180807134331247001　 (本次交易将直达收款方账户，请在5分钟之内完成支付，超时后请不要支付。)
                <span class="second short-content">
                  &nbsp;
                </span>
              </div>
			   <span class="payAmount-area" id="J_basePriceArea">
                                                     <strong class=" amount-font-22 ">11.00</strong> 元
                
        </span>

            </div>
          </div>
        </div>
        <!-- 操作区 -->
        <div class="cashier-center-container">
          <div data-module="excashier/login/2015.08.02/loginPwdMemberT" id="J_loginPwdMemberTModule"
          class="cashiser-switch-wrapper fn-clear">
            <!-- 扫码支付页面 -->
            <div class="cashier-center-view view-qrcode fn-left" id="J_view_qr">
      
              <!-- 扫码区域 -->
              <div data-role="qrPayArea" class="qrcode-integration qrcode-area" id="J_qrPayArea">
                <div class="qrcode-header">
                  <div class="ft-center">
                   请输入下方的的指定金额完成付款（元）                  </div>
                  <div class="ft-center qrcode-header-money">11.00</div>
                </div>
                <div class="qrcode-img-wrapper" id="payok">
                
               <div align="center">
			   
			   <img class='switch-tip-icon-img' id="imagesok" src='https://t.alipayobjects.com/tfscom/T1Z5XfXdxmXXXXXXXX.png' alt='手机支付宝图标' width='42' height='42'>
			   
				 <font id="qrcode"></font>
				 <font id="queren"></font>
                  </div>
                  <div class="qrcode-img-explain fn-clear">
                    <img class="fn-left" src="images/T1bdtfXfdiXXXXXXXX.png" alt="扫一扫标识">
                    <div class="fn-left">
                      打开手机支付宝<br><strong id="minute_show">0分</strong>
    <strong id="second_show">0秒</strong>过期</div>
                  </div>
                </div>
   <div id="qrPayScanSuccess" class="mi-notice mi-notice-success  qrcode-notice fn-hide" style="display: none;margin-top: 5px;">
            <div class="mi-notice-cnt">
                <div class="mi-notice-title qrcode-notice-title">
                    <i class="iconfont qrcode-notice-iconfont" title="扫描成功"></i>
                    <p class="mi-notice-explain-other qrcode-notice-explain ft-break">
                        <span class="ft-orange fn-mr5" data-role="qrPayAccount"></span>已创建订单，请在手机支付宝上完成付款
                    </p>
                </div>
            </div>
        </div>

          　　　　 　<br/>
          　　　　 　　<a href="https://mobile.alipay.com/index.htm" class="qrcode-downloadApp">首次使用请下载手机支付宝</a><br/>
              </div>
            
              <!-- 指引区域 -->
              <div class="qrguide-area">
                <img src="images/T13CpgXf8mXXXXXXXX.png" class="qrguide-area-img active">              </div>
            </div>
       
          </div>

        </div>
		
      </div>
	  </div>
	
<div id=partner><br><p>本站为第三方辅助软件服务商，与支付宝官方和淘宝网无任何关系<br/>不提供资金托管和结算，转账后将立即到达指定的账户。</p>
	  <br/><img alt=合作机构 src="https://i.alipayobjects.com/e/201303/2R3cKfrKqS.png"></div>
	    <script type="text/javascript">
var intDiff = parseInt(286);//倒计时总秒数量
function timer(intDiff){
    window.setInterval(function(){
    var day=0,
        hour=0,
        minute=0,
        second=0;//时间默认值       
    if(intDiff > 0){
        day = Math.floor(intDiff / (60 * 60 * 24));
        hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
        minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
        second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
    }
	if (minute == 00 && second == 00) document.getElementById('qrcode').innerHTML='<br/><br/><br/><br/><br/><br/><br/><h2>二维码超时 请重新发起交易</h2><br/>';
    if (minute <= 9) minute = '0' + minute;
    if (second <= 9) second = '0' + second;
    $('#day_show').html(day+"天");
    $('#hour_show').html('<s id="h"></s>'+hour+'时');
    $('#minute_show').html('<s></s>'+minute+'分');
    $('#second_show').html('<s></s>'+second+'秒');
    intDiff--;
    }, 1000);
} 
$(function(){
    timer(intDiff);
});

// 设置参数方式
var qrcode = new QRCode('qrcode', {
   text: 'http://qr.alipay.com/FKX08333SRETE5O1NDV7D5',
  width: 168,
  height: 168,
  colorDark : '#000000',
  colorLight : '#ffffff',
  correctLevel : QRCode.CorrectLevel.M
});

    // 订单详情
    $('#orderDetail .arrow').click(function (event) {
        if ($('#orderDetail').hasClass('detail-open')) {
            $('#orderDetail .detail-ct').slideUp(500, function () {
                $('#orderDetail').removeClass('detail-open');
            });
        } else {
            $('#orderDetail .detail-ct').slideDown(500, function () {
                $('#orderDetail').addClass('detail-open');
            });
        }
    });
    // 检查是否支付完成
    function loadmsg() {
        $.ajax({
            type: "GET",
            dataType: "json",
            url: "Ajaxdata.php",
            timeout: 10000, //ajax请求超时时间10s
            data: {type: "wxpay", trade_no: "47f7c8a1bfe04aa5eccb37b5de4c7bfc"}, //post数据
            success: function (data, textStatus) {
                //从服务器得到数据，显示数据并继续查询
                if (data.code == 1) {
                       document.getElementById('qrcode').innerHTML='<br/><br/><br/><br/><br/><br/><h1>支付成功！<br/></h1>';
					   document.getElementById('imagesok').src='images/sao.png';
                     					window.location.href='/pay/payok.php?url=https://user.opencai.net/user/trade.aspx';
					 					
                }
				if (data.code == -2) {
					  document.getElementById('qrcode').innerHTML='<br/><br/><br/><br/><br/><br/><h1>二维码已过期或已支付</h1><br/>';
					  
					  
                }
				if (data.code == -3) {
					  document.getElementById('qrcode').innerHTML='<br/><br/><br/><h1>参数错误！</h1><br/><br/><br/>';
                }
				if (data.code == -4) {
					  //document.getElementById('queren').innerHTML='<br/><h1>扫码成功，等待确认</h1>';
					   document.getElementById('imagesok').src='images/sao.png';
					    $('#qrPayScanSuccess').show();

					   setTimeout("loadmsg()", 3000);
					  
                }
				if (data.code == -1) {
                    setTimeout("loadmsg()", 3000);
                }
            },
            //Ajax请求超时，继续查询
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                if (textStatus == "timeout") {
                    setTimeout("loadmsg()", 1000);
                } else { //异常
				 setTimeout("loadmsg()", 3000);
				 document.getElementById('qrcode').innerHTML='<br/><br/><br/><br/><br/><br/><br/><h1>正在连接....</h1>';
                }
            }
        });
    }
    window.onload = loadmsg();
 
</script>

  </body>
</html>
